<h2> Data Administrator <h2>
<?php
include 'librari/koneksi.php';
$query = "SELECT * FROM administrator"; //the query for get all data in administrator
$hasil = mysql_query($query);

echo "<table border='0' cellpadding='2' cellspacing='2'>";
echo "<tr bgcolor='orange' align='center'>
		<td> <b> ID Admin </b> </td>
        <td> <b> Nama Admin </b> </td>
        <td> <b> Password Admin </b> </td>
        <td> <b> Action </b> </td>
     </tr>";
while ($data = mysql_fetch_array($result)) //mysql_fetch_array = get the query data into array
{
  echo "<tr align='center'>
  			<td>".$data['idAdmin']."</td>
            <td>".$data['nmAdmin']."</td>
            <td>".$data['passwdAdmin']."</td>
            <td> <i> <a href='form_tambah.php?id=".$data['idAdmin']."'> Tambah </a> </i></td>
       </tr>";
}
echo "</table>";
?>